//function formatAction(value,row,index) {
//    var a = '<input type="button" value="审核" class="input" onclick="materialcheck_detail('+row.ref_id+');">';
//    return a;
//}

function submitSearch(days) {
    $("#searchTable").submit();
}

function resetSearch() {
    $("#select_custName").textbox("setValue","");
    $("#select_refertype").combobox("setValue","");
    $("#select_custStatus").combobox("setValue","");
}

function materialcheck_add() {
    window.parent.addTab('材料审核新增','../../materialCheck/materialcheck/materialcheck_add');
}

function materialcheck_detail() {
    var obj=$("#default_table").datagrid('getSelected');
    //console.log($('#customer_table').datagrid('getPager').data("pagination").options.pageNumber);
    if(obj==null){
        alert("请选择审核内容！");
        return;
    }
    var ref_id=obj.ref_id;
    window.parent.addTab('审核附件','../../customer/customer/reference_check?ref_id='+ref_id);
}/**
 * Created by tsy on 2016/11/1.
 */
